<template>
  <div class="about">
    <h1>count{{count}}</h1>
    <button @click="changeCount">count修改</button>
   
  </div>
</template>

<script lang="ts">
 import {defineComponent} from "vue"
export default defineComponent({
  name :"About",
  setup() {
    let count = 0;
    const changeCount = () =>{
      console.log(111);
      count++
      
    };
    return {
      count,
      changeCount,

    }
  }
});
 

</script>
